V:=@
HEADERDIR := lib/
SOURCEFILE := src/des.c
CFLAG:=-w -I $(HEADERDIR) $(SOURCEFILE)

all: client AS TGS SS

client: $(SOURCEFILE) src/client.c
	$(V)gcc $(CFLAG) src/client.c -o client
AS: $(SOURCEFILE) src/AS.c
	$(V)gcc $(CFLAG) src/AS.c -o AS
TGS: $(SOURCEFILE) src/TGS.c
	$(V)gcc $(CFLAG) src/TGS.c -o TGS
SS: $(SOURCEFILE) src/SS.c
	$(V)gcc $(CFLAG) src/SS.c -o SS

run:all
	$(V)./AS
	$(V)./TGS 
	$(V)./client
	$(V)./SS
clean:
	$(V)rm client AS SS TGS des_test -f